import axios from '@/utils/http';
import base from './base';

export default {
  // 搜索标签
  search(params) {
    return axios.get(
      `${base.sq}/search`,
      {
        params: {
          select_type: 'Tag',
          title: params.title,
          page: 1,
        },
      },
    );
  },
  // 获取热门标签
  hot() {
    return axios.get(
      `${base.sq}/tags`,
    );
  },
};
